// 老师课程相关

import axios from "axios";

export function getCourseList() {
    return axios({
        method: "get",
        url: "/api/teacher/courses",
        header: {
            Authorization: localStorage.getItem("Authorization")
        }
    }).then(response => {
        return {
            result: true,
            courses: response.data.courses
        }
    }).catch(error => {
        return {
            result: false,
            msg: error.response.data.msg
        }
    })
}